package com.cloud.core.http;

import io.reactivex.functions.Function;

/**
 * @Author:Chen
 * @Date: 2021-01-14 14:38
 * @Description:
 */
public class FuncWrapper<T> implements Function<BaseResponse<T>, T> {
    @Override
    public T apply(BaseResponse<T> tBaseResponse) {
        if (!tBaseResponse.flag || !"0".equals(tBaseResponse.code)) {
        }
        if (tBaseResponse.data == null) {
        }
        return tBaseResponse.data;
    }
}
